package com.itzb.asone.system.model;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import org.apache.commons.lang3.builder.ReflectionToStringBuilder;

import com.itzb.asone.annotation.Dict;
import com.itzb.asone.mybatis.IModel;


public class SysResource implements IModel { 

	public String toString() {return ReflectionToStringBuilder.toString(this);}

 	/** 
	* 鑾峰彇 主键
	*/ 
	public String getId(){ return id ; } 
	/** 
	* 璁剧疆 主键
	*/ 
	public void setId(String id){ this.id=id ; } 
 	/** 
	* 鑾峰彇 资源Id
	*/ 
	public String getResourceId(){ return resourceId ; } 
	/** 
	* 璁剧疆 资源Id
	*/ 
	public void setResourceId(String resourceId){ this.resourceId=resourceId ; } 
 	/** 
	* 鑾峰彇 资源编号
	*/ 
	public String getResourceCode(){ return resourceCode ; } 
	/** 
	* 璁剧疆 资源编号
	*/ 
	public void setResourceCode(String resourceCode){ this.resourceCode=resourceCode ; } 
 	/** 
	* 鑾峰彇 资源名称
	*/ 
	public String getResourceName(){ return resourceName ; } 
	/** 
	* 璁剧疆 资源名称
	*/ 
	public void setResourceName(String resourceName){ this.resourceName=resourceName ; } 
 	/** 
	* 鑾峰彇 资源类型
0-菜单目录 1-菜单URL 2-按钮
	*/ 
	public Integer getResourceType(){ return resourceType ; } 
	/** 
	* 璁剧疆 资源类型
0-菜单目录 1-菜单URL 2-按钮
	*/ 
	public void setResourceType(Integer resourceType){ this.resourceType=resourceType ; } 
 	/** 
	* 鑾峰彇 菜单地址
	*/ 
	public String getUrl(){ return url ; } 
	/** 
	* 璁剧疆 菜单地址
	*/ 
	public void setUrl(String url){ this.url=url ; } 
 	/** 
	* 鑾峰彇 资源父Id
	*/ 
	public String getParentResourceId(){ return parentResourceId ; } 
	/** 
	* 璁剧疆 资源父Id
	*/ 
	public void setParentResourceId(String parentResourceId){ this.parentResourceId=parentResourceId ; } 
 	/** 
	* 鑾峰彇 图标
	*/ 
	public String getIconClass(){ return iconClass ; } 
	/** 
	* 璁剧疆 图标
	*/ 
	public void setIconClass(String iconClass){ this.iconClass=iconClass ; } 
 	/** 
	* 鑾峰彇 序号
	*/ 
	public Integer getOrderNumber(){ return orderNumber ; } 
	/** 
	* 璁剧疆 序号
	*/ 
	public void setOrderNumber(Integer orderNumber){ this.orderNumber=orderNumber ; } 
 	public Date getCreateTime(){ return createTime ; } 
	public void setCreateTime(Date createTime){ this.createTime=createTime ; }

	public List<SysResource> getResourceChild() {
		return resourceChild;
	}

	public void setResourceChild(List<SysResource> resourceChild) {
		this.resourceChild = resourceChild;
	}

	public String getParentResourceName() {
		return parentResourceName;
	}

	public void setParentResourceName(String parentResourceName) {
		this.parentResourceName = parentResourceName;
	}

	public String getPrower() {
		return prower;
	}

	public void setPrower(String prower) {
		this.prower = prower;
	}

	/**
	* 主键
	*/ 
	private String id; 

 	/** 
	* 资源Id
	*/ 
	private String resourceId; 

 	/** 
	* 资源编号
	*/ 
	private String resourceCode; 

 	/** 
	* 资源名称
	*/ 
	private String resourceName; 

 	/** 
	* 资源类型
0-菜单目录 1-菜单URL 2-按钮
	*/ 
	@Dict(dictCode="asone_sysResource_type")
	private Integer resourceType; 

 	/** 
	* 菜单地址
	*/ 
	private String url; 

 	/** 
	* 资源父Id
	*/ 
	private String parentResourceId; 
	/** 
	* 资源父Id
	*/ 
	private String parentResourceName; 

 	/** 
	* 图标
	*/ 
	private String iconClass; 

 	/** 
	* 序号
	*/ 
	private Integer orderNumber; 

 	private Date createTime;

	private List<SysResource> resourceChild = new ArrayList<SysResource>();
	
	private String prower = "false";

} 